<template>
	<div class="myself">
		<div v-if="isLogin">
			个人中心
		</div>
		<div v-else>
			<router-link to="/login">已经登录:</router-link>
		</div>
		
	</div>
</template>

<script>
  export default{
  	created(){
  		if(localStorage.setItem("isLogin",true)){
  			this.isLogin=false
  		}
  	},
  	data(){
  		return{
  			isLogin:true
  		}
  	}
  }
</script>

<style lang="scss">
	.myself{
		position: absolute;
		top: 100px;
	}
</style>
